package com.xx.createBean;

import com.xx.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import sun.management.FileSystem;

public class XmlCreateBean {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");

        User user = (User) applicationContext.getBean("user");
        System.out.println("user = " + user);
    }
}
